home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / vidhandl / remove.bat < prev    next >
Encoding:
DOS Batch File  |  1999-02-03  |  1.4 KB  |  47 lines

  1. @echo=off
  2. if not exist %1\bin\tlib.exe goto error
  3. echo Usage: REMOVE (TC/TC++ path)
  4. echo  
  5. echo REMOVE will remove VIDEO HANDLING FUNCTIONS from your RTL libraries and
  6. echo the following VIDEO HANDLING FUNCTIONS files:
  7. echo %1\INCLUDE\CRT.H
  8. echo %1\DOC\VIDEOHLP.TXT
  9. echo Continue?
  10. choice /c:yn
  11. if errorlevel 2 goto end
  12. echo Removing CRT functions from the RTL libraries
  13. echo Processing cs.lib
  14. tlib %1\lib\cs.lib @remove.dat
  15. echo Processing cm.lib
  16. tlib %1\lib\cm.lib @remove.dat
  17. echo Processing cc.lib
  18. tlib %1\lib\cc.lib @remove.dat
  19. echo Processing cl.lib
  20. tlib %1\lib\cl.lib @remove.dat
  21. echo Processing ch.lib
  22. tlib %1\lib\ch.lib @remove.dat
  23. echo Removing unecessary backup files created by TLIB
  24. del %1\lib\cc.bak
  25. del %1\lib\cs.bak
  26. del %1\lib\cm.bak
  27. del %1\lib\cl.bak
  28. del %1\lib\ch.bak
  29. echo Deleting header file CRT.H
  30. del %1\include\crt.h
  31. echo Deleting help file VIDEOHLP.TXT
  32. del %1\doc\videohlp.txt
  33. echo  
  34. echo Uninstallation complete. As some files or directories may have been
  35. echo changed since last installation, it would be good to check if
  36. echo uninstallation has been properly executed.
  37. goto end
  38. :error
  39. echo  
  40. echo ERROR: %1\BIN\TLIB.EXE not found.
  41. echo This problably has happened because you gave wrong path of TC or because
  42. echo your C/C++ compiler is not Turbo C/C++. (in this case edit this batch file)
  43. echo For more information read README.1ST.
  44. :end
  45. @echo=on
  46.  
  47.